package rewind.show.es.entity;

import co.elastic.clients.elasticsearch._types.mapping.Property;
import lombok.Data;
import rewind.show.es.anno.EsDocument;
import rewind.show.es.anno.EsField;

@Data
@EsDocument(index = "blog")
public class BolgEntity {

    @EsField(type = Property.Kind.Keyword)
    private Long id;

    @EsField(type = Property.Kind.Text)
    private String title;

    @EsField(type = Property.Kind.Text)
    private String content;
}
